<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>margin水平方向会重叠吗</title>
    <style>
        *{
            box-sizing: border-box;
        }
        ul{
            margin:0;
            padding:0;
            width:199px;
            overflow: hidden;
            border:2px solid black;
            background-color: green;
        }
        li{
            list-style: none;
            float: left;
            width:50px;
            height:50px;
            background-color: burlywood;
            margin-right: 15px;
        }
    </style>
</head>
<body>
<ul>
    <li></li>
    <li></li>
    <li></li>
</ul>
</body>
</html>